function login(callback) {
  const ua = navigator.userAgent;
  if (ua.indexOf("iflytek_mmp") !== -1) {
    croods.customPlugin({
      action: "UserPlugin.login",
      params: {},
      success: function (res) {
        callback(null, res);
      },
      fail: function (msg) {
        callback(msg, null);
      },
    });
  } else {
    callback(null, null);
  }
};